import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//vite-plugin-svg-icons 插件需要引入该文件
import 'virtual:svg-icons-register'
import "@/styles/index.scss"
import componentInstall from "./components/index"
import router from './router'
import pinia from './store';
import { InstallCodeMirror } from "codemirror-editor-vue3"; 
// import '@logicflow/core/dist/style/index.css';

const app = createApp(App)
//注册element plus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(router)
app.use(pinia)
app.use(InstallCodeMirror);
//注册自定义svg图标
app.use(componentInstall)
app.use(ElementPlus, {
  locale: zhCn,
})


app.mount('#app')

